package com.example.hw3.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "classes")
public class Course {
    //属性
    //课程号
    @Id
    @Column(name="classId")
    private int classId;
    //类型
    @Column(name="type")
    private String type;
    //名称
    @Column(name="name")
    private String name;
    //老师
    @Column(name="teacher")
    private String teacher;
    //时间
    @Column(name="time")
    private String time;
    //教室
    @Column(name="classroom")
    private String classroom;
    //人数
    @Column(name="studentNum")
    private int studentNum;

}
